use std::io;

// Hello rust
fn hello_world(){
    println!("Hello, world!");
}


// 猜数小游戏
fn num_guess(){
    println!("Guess the number!");
    println!("Input your guess:");
    let mut guess = String::new();
    io::stdin()
        .read_line(&mut guess)
        .expect("Failed to read line");
    
    println!("You guessed: {}", guess);
}

fn main() {
    num_guess();
}
